//
//  Discover_RaidersCell.m
//  MindBox
//
//  Created by MS on 16-1-7.
//  Copyright (c) 2016年 Lemon. All rights reserved.
//

#import "Discover_RaidersCell.h"
#import "UIImageView+WebCache.h"
@interface Discover_RaidersCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleView;
@property (weak, nonatomic) IBOutlet UILabel *subTitleView;
@property (weak, nonatomic) IBOutlet UIImageView *contenImageView1;
@property (weak, nonatomic) IBOutlet UIImageView *contenImageView2;
@property (weak, nonatomic) IBOutlet UIImageView *contenImageView3;


@end


@implementation Discover_RaidersCell

-(void)setRaiders:(Discover_Raiders *)raiders
{
    _raiders = raiders;
    self.subTitleView.lineBreakMode = NSLineBreakByCharWrapping;
    self.titleView.text = raiders.title;
    self.subTitleView.text = raiders.short_description;
    self.subTitleView.lineBreakMode =UILineBreakModeTailTruncation;
    [self.contenImageView1 sd_setImageWithURL:[NSURL URLWithString:raiders.list_images[0]]];
    [self.contenImageView2 sd_setImageWithURL:[NSURL URLWithString:raiders.list_images[1]]];
    [self.contenImageView3 sd_setImageWithURL:[NSURL URLWithString:raiders.list_images[2]]];
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    [self.contentView setNeedsLayout];
    [self.contentView layoutIfNeeded];
   
    
}

- (void)awakeFromNib {
    // Initialization code
    self.contentView.backgroundColor = [UIColor colorWithRed:0.97f green:0.97f blue:0.97f alpha:1.00f];
  
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


@end
